'use strict'

define(['jquery', 'bootstrap', 'select2', 'select2.zh', 'datetimepicker', 'datetimepickerCN',
        'shiftform', 'validate', 'validate.en', 'location', 'area'], function($) {
  
  return {
        
    init: function(data) {
      this.data = data;
      this.input();
    },
  
    input: function() {
      
      var that = this;
      
      // bind district picker
      that.initDistrictPicker();
    },
    
    initDistrictPicker: function() {
      var that = this;
      showLocation(that.data.province, that.data.city, that.data.region);
    }
    
  }
})
